<?php htmlTemplate('admin_header_frame.php');?>
<div class="title">消费统计-道具类

</div>


<table width="100%" cellspacing="1" cellpadding="3" id="listTable">
  <tbody>
    	<tr>
		<td colspan="7">
		<form action="">			
		日期：<input 
			id="c_sdatetime" 
			name="c_sdatetime" 
			type="text" 
			style="width:65px;"
			value='<?php 
			if (Http::get('c_sdatetime')){
				echo Http::get('c_sdatetime');
			}
			?>' class='date demo_time'  
			onClick="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd'})"
			>-<input 
			id="c_edatetime" 
			name="c_edatetime" 
			type="text" 
			style="width:65px;"
			value='<?php 				 
			if (Http::get('c_edatetime')){
				echo Http::get('c_edatetime');
			}
			?>' class='date demo_time'  
			onClick="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd'})"
			>
		<input type="submit" value="搜 索" class="btn"> 
		
		</form>
		</td>
	</tr>
  
  <tr>
  	<th align="left" width="10%">日期</th>  
  	<th>服装（金币|比索）</th> 
    <th>饰品（金币|比索）</th>
    <th>礼品（金币|比索）</th>
    <th>家具（金币|比索）</th>
       
  </tr>

	<?php 
	$totalClothesPayGold =0;
	$totalClothesPayMoney = 0;
	
	$totalAccessoriesPayGold=0;
	$totalAccessoriesPayMoney=0;
	
	$totalGiftPayGold=0;
	$totalGiftPayMoney=0;
	
	$totalFurniturePayGold=0;
	$totalFurniturePayMoney=0;
	
	if ($rs){
	foreach ($rs as $k=>$v):
	$totalClothesPayGold = $totalClothesPayGold+ $v['totalClothesPayGold'];
	$totalClothesPayMoney = $totalClothesPayMoney+ $v['totalClothesPayMoney']/10;
	
	$totalAccessoriesPayGold = $totalAccessoriesPayGold+ $v['totalAccessoriesPayGold'];
	$totalAccessoriesPayMoney = $totalAccessoriesPayMoney+ $v['totalAccessoriesPayMoney']/10;
	
	$totalGiftPayGold = $totalGiftPayGold+ $v['totalGiftPayGold'];
	$totalGiftPayMoney = $totalGiftPayMoney+ $v['totalGiftPayMoney']/10;
	
	$totalFurniturePayGold = $totalFurniturePayGold+ $v['totalFurniturePayGold'];
	$totalFurniturePayMoney = $totalFurniturePayMoney+ $v['totalFurniturePayMoney']/10;

	?>
   <tr>
    <td align="left" width="10%"> <?php echo $v['dateline'];?></td>
    <td align="center">
	<?php echo $v['totalClothesPayGold'];?> | <?php echo $v['totalClothesPayMoney']/10;?>
	</td>
	<td align="center">
	<?php echo $v['totalAccessoriesPayGold'];?> | <?php echo $v['totalAccessoriesPayMoney']/10;?>
	</td>
	<td align="center">
	<?php echo $v['totalGiftPayGold'];?> | <?php echo $v['totalGiftPayMoney']/10;?>
	</td>
	<td align="center">
	<?php echo $v['totalFurniturePayGold'];?> | <?php echo $v['totalFurniturePayMoney']/10;?>
	</td>
	   
  </tr>
  <?php endforeach;}?>
  <tr style="background: #F4FAFB;">
  <td align="left">合计</td>
	<td align="center"><? echo $totalClothesPayGold;?> | <? echo $totalClothesPayMoney;?></td>
	<td align="center"><? echo $totalAccessoriesPayGold;?> | <? echo $totalAccessoriesPayMoney;?></td>
	<td align="center"><? echo $totalGiftPayGold;?> | <? echo $totalGiftPayMoney;?></td>
	<td align="center"><? echo $totalFurniturePayGold;?> | <? echo $totalFurniturePayMoney;?></td>	
</tr>
 
 
  </tbody>
</table>
<?php htmlTemplate('admin_footer_frame.php');?>